import {Pipe, PipeTransform} from '@angular/core';
import {Artifact} from '../entity/artifact';

@Pipe({
    name: 'dubboDependencyGradle'
})
export class DubboDependencyGradlePipe implements PipeTransform {

    transform(artifact: Artifact, args?: any): any {
        return `\`\`\`groovy
compile "${artifact.groupId}:${artifact.artifactId}:${artifact.version}"
\`\`\`
`;
    }

}
